package com.lsc.easyblog.service;

import com.lsc.easyblog.model.Article;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;


public interface ArticleService {

    void addArticle(Article article);

    List<Article> findAllArticle();

    /**
     * @describe: 获取页
     * @author: Lu Shengcan
     * @date: 2022-1-5, 周三, 22:22
     */
    Page<Article> getPage(int pageNum, int pageSize);

    Optional<Article> findArticleById(Long id);



}
